<template>
  <div class="editor_detailsBox">
    <div>
      <!-- <p class="heading">组件样式</p> -->
      <!-- 基础版本  上传图片  上传视频 -->
      <div v-if="num == 1">
        <Table/>
      </div>
      <!-- 屏蔽敏感词汇版本 -->
      <div v-if="num == 2">
        样式2
      </div>
      <!-- 自定义菜单版本   自定义菜单--上传附件 -->
      <div v-if="num == 3">
        样式3
      </div>
      <!-- 多语言版本 -->
      <div v-if="num == 4">
        样式4
      </div>
    </div>
    <div>
      <!-- <div class="code_box">
        <p class="heading">组件代码</p>
        <div class="code_con" v-html="code"></div>
      </div> -->

      <!-- <div class="notice">
        <p class="heading">使用说明</p>
        <div v-html="notice" class="notice_con"></div>
      </div> -->
    </div>
  </div>
</template>

<script>
import vBase from "./components/base.vue";
import newMenus from "./components/newmenus.vue";
import vSensitivity from "./components/sensitivity.vue";
import moreLanguage from "./components/moreLanguage.vue";
import Table from "./components/table.vue";
import { baseCode, baseNotice } from "@/assets/code/wangEditor/base.js";
export default {
  data() {
    return {
      num: 1,
      code: "",
      notice: "",
      content: "",
    };
  },
  components: {
    vBase,
    newMenus,
    vSensitivity,
    moreLanguage,
    Table
  },
  created() {
    this.num = this.$route.query.num;
    console.log(baseCode, "baseCode");
    switch (Number(this.num)) {
      case 1:
        this.code = baseCode;
        this.notice = baseNotice;
        break;
      case 2:
        this.code = baseCode;
        this.notice = baseNotice;
        break;
    }
  },
  methods: {
    getContent(con) {
      console.log(con, "提交的数据");
    },
  },
};
</script>

<style scoped>
.heading {
  width: 100%;
  margin-left: 1rem;
  font-weight: 900;
  font-size: 1.2rem;
  /* 直接将英文变成大写 */
  text-transform: uppercase;
  letter-spacing: 0.1ch;
  line-height: 1;
  padding-bottom: 0.5em;
  margin-bottom: 1rem;
  position: relative;
}
.heading:after {
  display: block;
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
  bottom: 0;
}
.notice {
  height: 100%;
  /* height: 30%; */
}
.code_box {
  height: 65%;
}
.code_con,
.notice_con {
  box-shadow: 0 0px 5px #1a9be6;
  height: 90%;
  overflow: auto;
  padding: 0 10px;
}
</style>